package com.tanjie.blackbean.pojo.response;

import lombok.Getter;

/**
 * @author: tanjie
 * @date: 2022-04-07
 **/
@Getter
public enum BizErrorCode implements IResult {

    DEFAULT("业务异常", -2),

    VALUE_ERROR("输入的值错误"),

    ID_REQUIRE_NOT_BLANK("id不能为空"),

    ID_NOT_EXIST("id在系统中不存在"),
    ;

    final String message;

    final Integer code;

    BizErrorCode(String message) {
        this.message = message;
        this.code = -2;
    }

    BizErrorCode(String message, Integer code) {
        this.message = message;
        this.code = code;
    }

}
